using LitJson;
using UnityEngine;

namespace TodoPro.Utility
{
    public class LitJsonSerializer : IJsonSerializer
    {
        public string Serialize(object obj)
        {
            Debug.Log("调用了 LitJson 序列化");
            return JsonMapper.ToJson(obj);
        }

        public T Deserialize<T>(string jsonString)
        {
            return JsonMapper.ToObject<T>(jsonString);
        }
    }
}